package com.example.homework7;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

import java.util.List;

@Dao
public interface RoomDao {
    @Insert
    public void insert(User user);
    @Query("select * from users")
    public List<User> getAll();
    @Query("select * from users where age < :age")
    public List<User> getAllByAge(int age);
}